History of C++ BCPL Bell Labs 1969 Martin Richards (Intended for compiler writing, no longer in use, Basic Combined Programming language) B Bell Labs 1969 Ken Thompson (Written for UNIX OS) NB Bell Labs 1971 Dennis Ritchie (Added types to B) C Bell Labs 1969-1973 Dennis Ritchie (Restructured Lang. Wrote new compiler) C++ Bell Labs 1983-1985 Bjarne Stroustrup (C with Classes) #include #include using namespace std; void main() { //int x; //cin >> x; //( x > 60 ) ? cout << "yes" : cout << "no"; // //cout << endl; //int x; //int y; //int max; //cin >> x; //cin >> y; //max = ((x > y)?x:y); //cout.precision(2); ////cout.setf(ios_base::fixed); ////cout.setf(ios_base::left); //cout.setf(ios_base::fixed | ios_base::left); //cout << "ios_base::fixed =" << ios_base::fixed << endl; //cout << "ios_base::left = " << ios_base::left << endl; //cout << "(ios_base::fixed | ios_base::left) = " << (ios_base::fixed | ios_base::left) << endl; //cout << "(ios_base::fixed & ios_base::left) = " << (ios_base::fixed & ios_base::left) << endl; //cout << setw(10) << 43.23232 << setw(10) << 234.2345234 << endl; //cout.unsetf(ios_base::fixed | ios_base::left); //cout << setw(10) << 43.23232 << setw(10) << 234.2345234 << endl; //do //{ // //stuff //} //while(x > y); }